using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace way.model
{
    public class MenuCore
    {
        public string titleMenu = "menu";
        public string methodMenu = "menu_method";
        public string inCore = "_in_core";
        public string split = ",";
        public Dictionary<string, string> methodMenuMap;
        public int upHead = 0;
        public int idStart = 1;
        public string updateIndexOf ="update";
        public string appConfigMenuNodePrevious = "menuNodePrevious";
        public string appConfigDataBase = "database";
        public string appConfigUseTable = "useTable";
        public string schema = "test";
        public int queryLength = 100;
        public int treeMax = 1000;

        public MenuCore() {
            initMenuMethodMap();
        }

        public void initMenuMethodMap()
        {
            methodMenuMap = new Dictionary<string, string>
            {
                { "menuAddHead", "menuAddHead" },
            };
        }

        public string getMenuMethodName(string keyMethod) {
            string value = string.Empty;
            if (methodMenuMap.ContainsKey(keyMethod)) {
                value= methodMenuMap[keyMethod];
            }
            return value;
        }
    }
}
